package com.xintonghua.bussiness.bean;

import android.os.Parcel;
import android.os.Parcelable;

import org.greenrobot.eventbus.Subscribe;

/**
 * 作者：wanxianyi
 * 时间：2018/3/30.
 * 包名：com.xintonghua.bussiness.bean
 */

public class EvaluteBean implements Parcelable {

    /**
     * imgs :
     * <p>
     * ../../img/upload/hy-upload-listDetail-top_01.jpg
     * star : 3
     * create_time : 2018-03-12 11:27:29
     * head_img : https://wx.qlogo.cn/mmopen/vi_32/VafTCY5PCC0deTP8mqdJLEEewVmgPSkjOOuhmM85FLR82qzbnicmAJC4b8uyoF0cLCia7xfbmiaTYkfZRR48c34og/0
     * nickname : 冬瓜炒西瓜
     * shop_name : null
     * content : fefewafwaf发二娃发玩法
     * consumption_time : null
     */

    private String imgs;
    private float star;
    private String create_time;
    private String head_img;
    private String nickname;
    private String shop_name;
    private String content;
    private String consumption_time;

    public String getImgs() {
        return imgs;
    }

    public void setImgs(String imgs) {
        this.imgs = imgs;
    }

    public float getStar() {
        return star;
    }

    public void setStar(float star) {
        this.star = star;
    }

    public String getCreate_time() {
        return create_time;
    }

    public void setCreate_time(String create_time) {
        this.create_time = create_time;
    }

    public String getHead_img() {
        return head_img;
    }

    public void setHead_img(String head_img) {
        this.head_img = head_img;
    }

    public String getNickname() {
        return nickname;
    }

    public void setNickname(String nickname) {
        this.nickname = nickname;
    }

    public String getShop_name() {
        return shop_name;
    }

    public void setShop_name(String shop_name) {
        this.shop_name = shop_name;
    }

    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content;
    }

    public String getConsumption_time() {
        return consumption_time;
    }

    public void setConsumption_time(String consumption_time) {
        this.consumption_time = consumption_time;
    }

    public EvaluteBean() {
    }

    @Override
    public int describeContents() {
        return 0;
    }

    @Override
    public void writeToParcel(Parcel dest, int flags) {
        dest.writeString(this.imgs);
        dest.writeFloat(this.star);
        dest.writeString(this.create_time);
        dest.writeString(this.head_img);
        dest.writeString(this.nickname);
        dest.writeString(this.shop_name);
        dest.writeString(this.content);
        dest.writeString(this.consumption_time);
    }

    protected EvaluteBean(Parcel in) {
        this.imgs = in.readString();
        this.star = in.readFloat();
        this.create_time = in.readString();
        this.head_img = in.readString();
        this.nickname = in.readString();
        this.shop_name = in.readString();
        this.content = in.readString();
        this.consumption_time = in.readString();
    }

    public static final Creator<EvaluteBean> CREATOR = new Creator<EvaluteBean>() {
        @Override
        public EvaluteBean createFromParcel(Parcel source) {
            return new EvaluteBean(source);
        }

        @Override
        public EvaluteBean[] newArray(int size) {
            return new EvaluteBean[size];
        }
    };
}
